/*
 * timer.h
 *
 * Created: 06.05.2012 22:25:59
 *  Author: Maxim Karban <maxim.karban@gmail.com>
 */ 


#ifndef TIMER_H_
#define TIMER_H_

enum SensorState{
  SS_INIT_1,
  SS_INIT_2,
  SS_NORMAL_1,
  SS_NORMAL_2
};

#define PRESSURE_DATA_READY 0x01
#define ALTITUDE_DATA_READY 0x02
#define ACCEL_DATA_READY    0x04
#define ACCEL_FILTER_READY  0x08
#define ANY_DATA_PRINTED    0x10
#define GPS_GGA_IS_READY    0x20
#define GPS_RMC_IS_READY    0x40
#define GPS_DATA_LOCKED     0x80

#define MARK_200MS          0x01
#define MARK_500MS          0x02
#define MARK_1S             0x04
#define MARK_5S             0x08

extern uint8_t hLockData;
extern uint8_t hLockTime;

extern void timer1Init(void);
extern void sysEventsInit(void);


#endif /* TIMER_H_ */